Optimal. Leaf size=95 \[ \frac {i \tanh ^{-1}\left (\frac {\sqrt {2-3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {2-3 i} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {2+3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {2+3 i} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 95, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3575, 910, 93, 208} \[ \frac {i \tanh ^{-1}\left (\frac {\sqrt {2-3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {2-3 i} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {2+3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {2+3 i} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 93
Rule 208
Rule 910
Rule 3575
Rubi steps
\begin {align*} \int \frac {\sqrt {\tan (c+d x)}}{\sqrt {3+2 \tan (c+d x)}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\sqrt {x}}{\sqrt {3+2 x} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {\operatorname {Subst}\left (\int \left (-\frac {1}{2 (i-x) \sqrt {x} \sqrt {3+2 x}}+\frac {1}{2 \sqrt {x} (i+x) \sqrt {3+2 x}}\right ) \, dx,x,\tan (c+d x)\right )}{d}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{(i-x) \sqrt {x} \sqrt {3+2 x}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {x} (i+x) \sqrt {3+2 x}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{i-(3+2 i) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {3+2 \tan (c+d x)}}\right )}{d}+\frac {\operatorname {Subst}\left (\int \frac {1}{i+(3-2 i) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {3+2 \tan (c+d x)}}\right )}{d}\\ &=\frac {i \tanh ^{-1}\left (\frac {\sqrt {2-3 i} \sqrt {\tan (c+d x)}}{\sqrt {3+2 \tan (c+d x)}}\right )}{\sqrt {2-3 i} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {2+3 i} \sqrt {\tan (c+d x)}}{\sqrt {3+2 \tan (c+d x)}}\right )}{\sqrt {2+3 i} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 95, normalized size = 1.00 \[ \frac {i \tan ^{-1}\left (\frac {\sqrt {-2+3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {-2+3 i} d}-\frac {i \tanh ^{-1}\left (\frac {\sqrt {2+3 i} \sqrt {\tan (c+d x)}}{\sqrt {2 \tan (c+d x)+3}}\right )}{\sqrt {2+3 i} d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.24, size = 479, normalized size = 5.04 \[ -\frac {3 \sqrt {\frac {\tan \left (d x +c \right ) \left (3+2 \tan \left (d x +c \right )\right )}{\left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )^{2}}}\, \left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right ) \left (\sqrt {-4+2 \sqrt {13}}\, \sqrt {13}\, \sqrt {2 \sqrt {13}+4}\, \arctan \left (\frac {\sqrt {\frac {\left (17 \sqrt {13}-52\right ) \tan \left (d x +c \right ) \left (52+17 \sqrt {13}\right ) \left (3+2 \tan \left (d x +c \right )\right )}{\left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )^{2}}}\, \sqrt {-4+2 \sqrt {13}}\, \left (4 \sqrt {13}+17\right ) \left (\sqrt {13}+2-3 \tan \left (d x +c \right )\right ) \left (17 \sqrt {13}-52\right ) \left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )}{56862 \tan \left (d x +c \right ) \left (3+2 \tan \left (d x +c \right )\right )}\right )-2 \sqrt {-4+2 \sqrt {13}}\, \sqrt {2 \sqrt {13}+4}\, \arctan \left (\frac {\sqrt {\frac {\left (17 \sqrt {13}-52\right ) \tan \left (d x +c \right ) \left (52+17 \sqrt {13}\right ) \left (3+2 \tan \left (d x +c \right )\right )}{\left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )^{2}}}\, \sqrt {-4+2 \sqrt {13}}\, \left (4 \sqrt {13}+17\right ) \left (\sqrt {13}+2-3 \tan \left (d x +c \right )\right ) \left (17 \sqrt {13}-52\right ) \left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )}{56862 \tan \left (d x +c \right ) \left (3+2 \tan \left (d x +c \right )\right )}\right )-8 \arctanh \left (\frac {6 \sqrt {13}\, \sqrt {\frac {\tan \left (d x +c \right ) \left (3+2 \tan \left (d x +c \right )\right )}{\left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )^{2}}}}{\sqrt {26 \sqrt {13}+52}}\right ) \sqrt {13}+34 \arctanh \left (\frac {6 \sqrt {13}\, \sqrt {\frac {\tan \left (d x +c \right ) \left (3+2 \tan \left (d x +c \right )\right )}{\left (\sqrt {13}-2+3 \tan \left (d x +c \right )\right )^{2}}}}{\sqrt {26 \sqrt {13}+52}}\right )\right )}{2 d \sqrt {\tan \left (d x +c \right )}\, \sqrt {3+2 \tan \left (d x +c \right )}\, \sqrt {2 \sqrt {13}+4}\, \left (17 \sqrt {13}-52\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {\tan \left (d x + c\right )}}{\sqrt {2 \, \tan \left (d x + c\right ) + 3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.61, size = 207, normalized size = 2.18 \[ \mathrm {atan}\left (\frac {\sqrt {3}\,d\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {-\frac {1}{26}-\frac {3}{52}{}\mathrm {i}}{d^2}}\,\left (4-6{}\mathrm {i}\right )+d\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {-\frac {1}{26}-\frac {3}{52}{}\mathrm {i}}{d^2}}\,\sqrt {2\,\mathrm {tan}\left (c+d\,x\right )+3}\,\left (-4+6{}\mathrm {i}\right )}{2\,\mathrm {tan}\left (c+d\,x\right )-\sqrt {3}\,\sqrt {2\,\mathrm {tan}\left (c+d\,x\right )+3}+3}\right )\,\sqrt {\frac {-\frac {1}{26}-\frac {3}{52}{}\mathrm {i}}{d^2}}\,2{}\mathrm {i}-\mathrm {atan}\left (\frac {\sqrt {3}\,d\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {-\frac {1}{26}+\frac {3}{52}{}\mathrm {i}}{d^2}}\,\left (4+6{}\mathrm {i}\right )+d\,\sqrt {\mathrm {tan}\left (c+d\,x\right )}\,\sqrt {\frac {-\frac {1}{26}+\frac {3}{52}{}\mathrm {i}}{d^2}}\,\sqrt {2\,\mathrm {tan}\left (c+d\,x\right )+3}\,\left (-4-6{}\mathrm {i}\right )}{2\,\mathrm {tan}\left (c+d\,x\right )-\sqrt {3}\,\sqrt {2\,\mathrm {tan}\left (c+d\,x\right )+3}+3}\right )\,\sqrt {\frac {-\frac {1}{26}+\frac {3}{52}{}\mathrm {i}}{d^2}}\,2{}\mathrm {i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {\tan {\left (c + d x \right )}}}{\sqrt {2 \tan {\left (c + d x \right )} + 3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________